package com.tutorialspoint.aop;

public class Student {
	private Integer age;
	private String name;
	private String sex;
	
	public void setAge(Integer age) {
		this.age = age;
	}
	public Integer getAge() {
		System.out.println("Age : " + age);
		return age;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getName() {
		System.out.println("Name : " + name);
		return name;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public String getSex() {
		System.out.println("Sex : " + sex);
		return sex;
	}
	public void printThrowException() {
		System.out.println("Exception raised");
		throw new IllegalArgumentException();
	}
}
